﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Entity.Use
{
    /// <summary>
    /// 收货地址
    /// </summary>
    [SugarTable("use_user_address")]
    public class UserAddress : BaseEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public UserAddress()
        {

        }

        /// <summary>
        /// 用户ID
        /// </summary>           
        public long UserId { get; set; }

        /// <summary>
        /// 收货人姓名
        /// </summary>

        public string Name { get; set; }

        /// <summary>
        /// 收货人电话
        /// </summary>
        public string Telephone { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string CityCode { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 区/县
        /// </summary>
        public string DistrictCode { get; set; }

        /// <summary>
        /// 区/县
        /// </summary>
        public string District { get; set; }

        /// <summary>
        /// 街道/镇
        /// </summary>
        public string StreetCode { get; set; }

        /// <summary>
        /// 街道/镇
        /// </summary>
        public string Street { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Detail { get; set; }

        /// <summary>
        /// 是否是默认地址
        /// </summary>
        public bool IsDefault { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime CreateTime { get; set; }
    }
}
